home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / turbovis / tvtool17.zip / KEY.H < prev    next >
C/C++ Source or Header  |  1993-06-02  |  5KB  |  146 lines

  1. /*
  2.  *  Copyright (C) 1993   Marc Stern  (internet: stern@mble.philips.be)
  3.  *
  4.  * File         : key.h
  5.  *
  6.  * Description  : key code definitions.
  7.  *
  8.  */
  9.  
  10.  
  11. #ifndef __Key_H
  12. #define __Key_H
  13.  
  14.  
  15. #define RETURN            0x0d
  16. #define ENTER                   RETURN
  17. #define SPACE            0x20
  18. #define ESC            0x1b
  19. #define BKSP            0x08
  20. #define BACKSPACE        0x08
  21.  
  22. #define UP                  328
  23. #define DOWN                    336
  24. #define LEFT                    331
  25. #define RIGHT                   333
  26. #define PGUP                329
  27. #define PGDN                    337
  28. #define HOME                    327
  29. #define END                         335
  30. #define INSERT                        338
  31. #define INS                     INSERT                
  32. #define DELETE                        339
  33. #define DEL                     DELETE
  34.  
  35. enum { F1 = 315, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11 = 389, F12 };
  36.  
  37. #define CTRL_UP                  397
  38. #define CTRL_DOWN               401
  39. #define CTRL_LEFT               371
  40. #define CTRL_RIGHT              372
  41. #define CTRL_PGUP        388
  42. #define CTRL_PGDN            374
  43. #define CTRL_HOME               375
  44. #define CTRL_END                 373
  45. #define CTRL_INSERT             402
  46. #define CTRL_INS                CTRL_INSERT
  47. #define CTRL_DELETE             403
  48. #define CTRL_DEL                CTRL_DELETE
  49.  
  50. enum { CTRL_F1 = 350, CTRL_F2, CTRL_F3, CTRL_F4, CTRL_F5, 
  51.        CTRL_F6, CTRL_F7, CTRL_F8, CTRL_F9, CTRL_F10,
  52.        CTRL_F11 = 393, CTRL_F12
  53.      };
  54.  
  55. #define CTRL_A                  1
  56. #define CTRL_B                  2
  57. #define CTRL_C                  3
  58. #define CTRL_D                  4
  59. #define CTRL_E                  5
  60. #define CTRL_F                  6
  61. #define CTRL_G                  7
  62. #define CTRL_H                  8
  63. #define CTRL_I                  9
  64. #define CTRL_J                  10
  65. #define CTRL_K                  11
  66. #define CTRL_L                  12
  67. #define CTRL_M                  13
  68. #define CTRL_N                  14
  69. #define CTRL_O                  15
  70. #define CTRL_P                  16
  71. #define CTRL_Q                  17
  72. #define CTRL_R                  18
  73. #define CTRL_S                  19
  74. #define CTRL_T                  20
  75. #define CTRL_U                  21
  76. #define CTRL_V                  22
  77. #define CTRL_W                  23
  78. #define CTRL_X                  24
  79. #define CTRL_Y                  25
  80. #define CTRL_Z                  26
  81.  
  82. #define ALT_UP                  408
  83. #define ALT_DOWN                416
  84. #define ALT_LEFT                411
  85. #define ALT_RIGHT               413
  86. #define ALT_PGUP            409
  87. #define ALT_PGDN            417
  88. #define ALT_HOME                407
  89. #define ALT_END                 415
  90. #define ALT_INSERT              418
  91. #define ALT_INS                 ALT_INSERT
  92. #define ALT_DELETE              419
  93. #define ALT_DEL                 ALT_DELETE
  94.  
  95. enum { ALT_F1 = 360, ALT_F2, ALT_F3, ALT_F4, ALT_F5, 
  96.        ALT_F6, ALT_F7, ALT_F8, ALT_F9, ALT_F10,
  97.        ALT_F11 = 395, ALT_F12
  98.      };
  99.  
  100. #define ALT_A                   286
  101. #define ALT_B                   304
  102. #define ALT_C                   302
  103. #define ALT_D                   288
  104. #define ALT_E                   274
  105. #define ALT_F                   289
  106. #define ALT_G                   290
  107. #define ALT_H                   291
  108. #define ALT_I                   279
  109. #define ALT_J                   292
  110. #define ALT_K                   293
  111. #define ALT_L                   294
  112. #define ALT_M                   306
  113. #define ALT_N                   305
  114. #define ALT_O                   280
  115. #define ALT_P                   281
  116. #define ALT_Q                   272
  117. #define ALT_R                   275
  118. #define ALT_S                   287
  119. #define ALT_T                   276
  120. #define ALT_U                   278
  121. #define ALT_V                   303
  122. #define ALT_W                   273
  123. #define ALT_X                   301
  124. #define ALT_Y                   277
  125. #define ALT_Z                   300
  126.  
  127. #define SHIFT_UP                  328
  128. #define SHIFT_DOWN              336
  129. #define SHIFT_LEFT              331
  130. #define SHIFT_RIGHT             333
  131. #define SHIFT_PGUP            329
  132. #define SHIFT_PGDN            337
  133. #define SHIFT_HOME              327
  134. #define SHIFT_END               335
  135. #define SHIFT_INSERT            338
  136. #define SHIFT_INS               SHIFT_INSERT                
  137. #define SHIFT_DELETE                339
  138. #define SHIFT_DEL               SHIFT_DELETE                
  139.  
  140. enum { SHIFT_F1 = 340, SHIFT_F2, SHIFT_F3, SHIFT_F4, SHIFT_F5, 
  141.        SHIFT_F6, SHIFT_F7, SHIFT_F8, SHIFT_F9, SHIFT_F10,
  142.        SHIFT_F11 = 391, SHIFT_F12
  143.      };
  144.  
  145. #endif
  146.